<?php
/**
 * Created by PhpStorm.
 * User: YUWENXUAN
 * Date: 2017/4/5
 * Time: 17:13
 */

$arr=range(1,100);
function sqar($v){
    return $v*$v;
}
//$arr2=array_map('sqar',$arr);
//var_dump($arr2);

function sum($v,$v2){
    return $v+$v2;
}

$arr3 = array_reduce($arr,'sum');
var_dump($arr3);

$data =[
  '10','no data','20.3'
];
//10.add(1);